//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using ;
using ;
CSharp template for protobuf-net.
Options:
General:
"help" - this page
Additional serializer support:
"xml" - enable explicit xml support (XmlSerializer)
"datacontract" - enable data-contract support (DataContractSerializer; requires .NET 3.0)
"binary" - enable binary support (BinaryFormatter; not supported on Silverlight)
Other:
"protoRpc" - enable proto-rpc client
"observable" - change notification (observer pattern) support
"preObservable" - pre-change notification (observer pattern) support (requires .NET 3.5)
"partialMethods" - provide partial methods for changes (requires C# 3.0)
"detectMissing" - provide *Specified properties to indicate whether fields are present
"lightFramework" - omit additional attributes not included in CF/Silverlight
"asynchronous" - emit asynchronous methods for use with WCF
"clientProxy" - emit asynchronous client proxy class
"import" - additional namespaces to import (semicolon delimited)
"fixCase" - change type/member names (types/properties become PascalCase; fields become camelCase)
Invalid options: xml and data-contract serialization are mutually exclusive.
// Option: xml serialization ([XmlType]/[XmlElement]) enabled
// Option: data-contract serialization ([DataContract]/[DataMember]) enabled
// Option: binary serialization (ISerializable) enabled
// Option: observable (OnPropertyChanged) enabled
// Option: pre-observable (OnPropertyChanging) enabled
// Option: partial methods (On*Changing/On*Changed) enabled
// Option: missing-value detection (*Specified/ShouldSerialize*/Reset*) enabled
// Option: light framework (CF/Silverlight) enabled
// Option: proto-rpc enabled
// Generated from:
namespace
{
}
// Note: requires additional types generated from:
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"")]
[global::System.Runtime.Serialization.DataContract(Name=@"")]
[global::System.Xml.Serialization.XmlType(TypeName=@"")]
public partial class : global::ProtoBuf.IExtensible, global::System.Runtime.Serialization.ISerializable, global::System.ComponentModel.INotifyPropertyChanged, global::System.ComponentModel.INotifyPropertyChanging
{
public () {}
protected (global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context)
: this() { global::ProtoBuf.Serializer.Merge(info, this); }
void global::System.Runtime.Serialization.ISerializable.GetObjectData(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context)
{ global::ProtoBuf.Serializer.Serialize(info, this); }
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{ if(PropertyChanged != null) PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(propertyName)); }
public event global::System.ComponentModel.PropertyChangingEventHandler PropertyChanging;
protected virtual void OnPropertyChanging(string propertyName)
{ if(PropertyChanging != null) PropertyChanging(this, new global::System.ComponentModel.PropertyChangingEventArgs(propertyName)); }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::ProtoBuf.ProtoContract(Name=@"")]
[global::System.Runtime.Serialization.DataContract(Name=@"")]
[global::System.Xml.Serialization.XmlType(TypeName=@"")]
public enum
{
}
0
[global::ProtoBuf.ProtoEnum(Name=@"", Value=)]
[global::System.Runtime.Serialization.EnumMember(Value=@"")]
[global::System.Xml.Serialization.XmlEnum(@"")]
= ,
@
|abstract|as|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|do|double|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|goto|if|implicit|in|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|private|protected|public|readonly|ref|return|sbyte|sealed|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|virtual|void|volatile|while|
FixedSize
Group
TwosComplement
ZigZag
Default
struct
struct
struct
struct
struct
struct
struct
struct
struct
class
class
struct
struct
struct
struct
struct
struct
none
Field type not implemented: (.)
double
double
float
long
ulong
int
ulong
uint
bool
string
byte[]
uint
int
long
int
long
Field type not implemented: (.)
@""
.
/*
*/ null
()
.
.
""
null
null
.
default()
global::System.Obsolete,
?
private = ;
[global::ProtoBuf.ProtoMember(, IsRequired = false, Name=@"", DataFormat = global::ProtoBuf.DataFormat.)]
[global::System.ComponentModel.DefaultValue()]
[global::System.Xml.Serialization.XmlElement(@"", Order = )]
[global::System.Runtime.Serialization.DataMember(Name=@"", Order = , IsRequired = false)]
private ;
[global::ProtoBuf.ProtoMember(, IsRequired = true, Name=@"", DataFormat = global::ProtoBuf.DataFormat.)]
[global::System.Xml.Serialization.XmlElement(@"", Order = )]
[global::System.Runtime.Serialization.DataMember(Name=@"", Order = , IsRequired = true)]
public
{
get { return ; }
set { OnChanging(value); OnPropertyChanging(@""); = value; OnPropertyChanged(@""); OnChanged();}
}
partial void OnChanging( value);
partial void OnChanged();
[global::System.Xml.Serialization.XmlIgnore]
[global::System.ComponentModel.Browsable(false)]
public bool Specified
{
get { return this. != null; }
set { if (value == (this.== null)) this. = value ? this. : ()null; }
}
private bool ShouldSerialize() { return Specified; }
private void Reset() { Specified = false; }
private readonly global::System.Collections.Generic.List<> = new global::System.Collections.Generic.List<>();
[global::ProtoBuf.ProtoMember(, Name=@"", DataFormat = global::ProtoBuf.DataFormat., Options = global::ProtoBuf.MemberSerializationOptions.Packed)]
[global::System.Runtime.Serialization.DataMember(Name=@"", Order = , IsRequired = false)]
[global::System.Xml.Serialization.XmlElement(@"", Order = )]
public global::System.Collections.Generic.List<>
{
get { return ; }
set { = value; }
}
[global::System.ServiceModel.ServiceContract(Name = @"")]
public interface I
{
}
public class Client : global::ProtoBuf.ServiceModel.RpcClient
{
public Client() : base(typeof(I)) { }
}
[global::System.ServiceModel.OperationContract(Name = @"")]
[global::ProtoBuf.ServiceModel.ProtoBehavior]
( request);
[global::System.ServiceModel.OperationContract(AsyncPattern = true, Name = @"")]
global::System.IAsyncResult Begin( request, global::System.AsyncCallback callback, object state);
End(global::System.IAsyncResult ar);
( request)
{
return () Send(@"", request);
}
public partial class CompletedEventArgs : global::System.ComponentModel.AsyncCompletedEventArgs
{
private object[] results;
public CompletedEventArgs(object[] results, global::System.Exception exception, bool cancelled, object userState)
: base(exception, cancelled, userState)
{
this.results = results;
}
public Result
{
get {
base.RaiseExceptionIfNecessary();
return ()(this.results[0]);
}
}
}
[global::System.Diagnostics.DebuggerStepThroughAttribute()]
public partial class Client : global::System.ServiceModel.ClientBase<I>, I
{
public Client()
{}
public Client(string endpointConfigurationName)
: base(endpointConfigurationName)
{}
public Client(string endpointConfigurationName, string remoteAddress)
: base(endpointConfigurationName, remoteAddress)
{}
public Client(string endpointConfigurationName, global::System.ServiceModel.EndpointAddress remoteAddress)
: base(endpointConfigurationName, remoteAddress)
{}
public Client(global::System.ServiceModel.Channels.Binding binding, global::System.ServiceModel.EndpointAddress remoteAddress)
: base(binding, remoteAddress)
{}
}
private BeginOperationDelegate onBeginDelegate;
private EndOperationDelegate onEndDelegate;
private global::System.Threading.SendOrPostCallback onCompletedDelegate;
public event global::System.EventHandler<CompletedEventArgs> Completed;
public ( request)
{
return base.Channel.(request);
}
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public global::System.IAsyncResult Begin( request, global::System.AsyncCallback callback, object asyncState)
{
return base.Channel.Begin(request, callback, asyncState);
}
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public End(global::System.IAsyncResult result)
{
return base.Channel.End(result);
}
private global::System.IAsyncResult OnBegin(object[] inValues, global::System.AsyncCallback callback, object asyncState)
{
request = (()(inValues[0]));
return this.Begin(request, callback, asyncState);
}
private object[] OnEnd(global::System.IAsyncResult result)
{
retVal = this.End(result);
return new object[] {
retVal};
}
private void OnCompleted(object state)
{
if ((this.Completed != null))
{
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.Completed(this, new CompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
}
}
public void Async( request)
{
this.Async(request, null);
}
public void Async( request, object userState)
{
if ((this.onBeginDelegate == null))
{
this.onBeginDelegate = new BeginOperationDelegate(this.OnBegin);
}
if ((this.onEndDelegate == null))
{
this.onEndDelegate = new EndOperationDelegate(this.OnEnd);
}
if ((this.onCompletedDelegate == null))
{
this.onCompletedDelegate = new global::System.Threading.SendOrPostCallback(this.OnCompleted);
}
base.InvokeAsync(this.onBeginDelegate, new object[] {
request}, this.onEndDelegate, this.onCompletedDelegate, userState);
}