public override void Write(BinaryWriter writer, object obj)
        {
            ProviderError providerError = (ProviderError)obj;

            writer.Write(0);
            writer.Write(providerError.dateTime.ToBinary());
            writer.Write((byte)providerError.type);
            writer.Write(providerError.providerId);
            writer.Write(providerError.id);
            writer.Write(providerError.code);
            writer.Write(providerError.text);
        }
 public override object Read(BinaryReader reader)
 {
     ProviderError providerError = new ProviderError();
     reader.ReadByte();
     providerError.dateTime = DateTime.FromBinary(reader.ReadInt64());
     providerError.type = (ProviderErrorType)reader.ReadByte();
     providerError.providerId = reader.ReadByte();
     providerError.id = reader.ReadInt32();
     providerError.code = reader.ReadInt32();
     providerError.text = reader.ReadString();
     return providerError;
 }
        public override object Read(BinaryReader reader)
        {
            ProviderError providerError = new ProviderError();

            reader.ReadByte();
            providerError.dateTime   = DateTime.FromBinary(reader.ReadInt64());
            providerError.type       = (ProviderErrorType)reader.ReadByte();
            providerError.providerId = reader.ReadByte();
            providerError.id         = reader.ReadInt32();
            providerError.code       = reader.ReadInt32();
            providerError.text       = reader.ReadString();
            return(providerError);
        }
Beispiel #4
0
		public void OnProviderError(ProviderError error)
		{
			this.framework.eventManager.OnEvent(error);
		}
 public ProviderErrorEventArgs(ProviderError error)
 {
     this.Error = error;
 }
Beispiel #6
0
 protected internal void EmitProviderError(ProviderError error)
 {
     this.framework.eventServer.OnProviderError(error);
 }
 public ProviderErrorEventArgs(ProviderError error)
 {
     this.Error = error;
 }
Beispiel #8
0
 public void OnProviderError(ProviderError error)
 {
     this.framework.eventManager.OnEvent(error);
 }
Beispiel #9
0
 protected internal void EmitProviderError(ProviderError error)
 {
     this.framework.eventServer.OnProviderError(error);
 }