コード例 #1
0
 public NetworkAddressWithTime With(DateTimeOffset? Time = null, NetworkAddress NetworkAddress = null)
 {
     return new NetworkAddressWithTime
     (
         Time ?? this.Time,
         NetworkAddress ?? this.NetworkAddress
     );
 }
コード例 #2
0
ファイル: VersionPayload.cs プロジェクト: pmlyon/BitSharp
 public VersionPayload(UInt32 ProtocolVersion, UInt64 ServicesBitfield, DateTimeOffset Time, NetworkAddress RemoteAddress, NetworkAddress LocalAddress, UInt64 Nonce, string UserAgent, UInt32 StartBlockHeight, bool Relay)
 {
     this.ProtocolVersion = ProtocolVersion;
     this.ServicesBitfield = ServicesBitfield;
     this.Time = Time;
     this.RemoteAddress = RemoteAddress;
     this.LocalAddress = LocalAddress;
     this.Nonce = Nonce;
     this.UserAgent = UserAgent;
     this.StartBlockHeight = StartBlockHeight;
     this.Relay = Relay;
 }
コード例 #3
0
ファイル: VersionPayload.cs プロジェクト: pmlyon/BitSharp
 public VersionPayload With(UInt32? ProtocolVersion = null, UInt64? ServicesBitfield = null, DateTimeOffset? Time = null, NetworkAddress RemoteAddress = null, NetworkAddress LocalAddress = null, UInt64? Nonce = null, string UserAgent = null, UInt32? StartBlockHeight = null, bool? Relay = null)
 {
     return new VersionPayload
     (
         ProtocolVersion ?? this.ProtocolVersion,
         ServicesBitfield ?? this.ServicesBitfield,
         Time ?? this.Time,
         RemoteAddress ?? this.RemoteAddress,
         LocalAddress ?? this.LocalAddress,
         Nonce ?? this.Nonce,
         UserAgent ?? this.UserAgent,
         StartBlockHeight ?? this.StartBlockHeight,
         Relay ?? this.Relay
     );
 }
コード例 #4
0
 public NetworkAddressWithTime(DateTimeOffset Time, NetworkAddress NetworkAddress)
 {
     this.Time           = Time;
     this.NetworkAddress = NetworkAddress;
 }
コード例 #5
0
 public NetworkAddressWithTime(DateTimeOffset Time, NetworkAddress NetworkAddress)
 {
     this.Time = Time;
     this.NetworkAddress = NetworkAddress;
 }
コード例 #6
0
ファイル: VersionPayload.cs プロジェクト: yonglehou/BitSharp
 public VersionPayload With(UInt32?ProtocolVersion = null, UInt64?ServicesBitfield = null, DateTimeOffset?Time = null, NetworkAddress RemoteAddress = null, NetworkAddress LocalAddress = null, UInt64?Nonce = null, string UserAgent = null, UInt32?StartBlockHeight = null, bool?Relay = null)
 {
     return(new VersionPayload
            (
                ProtocolVersion ?? this.ProtocolVersion,
                ServicesBitfield ?? this.ServicesBitfield,
                Time ?? this.Time,
                RemoteAddress ?? this.RemoteAddress,
                LocalAddress ?? this.LocalAddress,
                Nonce ?? this.Nonce,
                UserAgent ?? this.UserAgent,
                StartBlockHeight ?? this.StartBlockHeight,
                Relay ?? this.Relay
            ));
 }
コード例 #7
0
ファイル: VersionPayload.cs プロジェクト: yonglehou/BitSharp
 public VersionPayload(UInt32 ProtocolVersion, UInt64 ServicesBitfield, DateTimeOffset Time, NetworkAddress RemoteAddress, NetworkAddress LocalAddress, UInt64 Nonce, string UserAgent, UInt32 StartBlockHeight, bool Relay)
 {
     this.ProtocolVersion  = ProtocolVersion;
     this.ServicesBitfield = ServicesBitfield;
     this.Time             = Time;
     this.RemoteAddress    = RemoteAddress;
     this.LocalAddress     = LocalAddress;
     this.Nonce            = Nonce;
     this.UserAgent        = UserAgent;
     this.StartBlockHeight = StartBlockHeight;
     this.Relay            = Relay;
 }