Example #1
0
 public ObjectReference(SerializationInfo info, StreamingContext context)
 {
     SetField.NotNullFrom(out this.type, nameof(type), info);
 }
Example #2
0
 public StoreFromStack(Func <string, IBotDataBag, IStore <IFiberLoop <C> > > make)
 {
     SetField.NotNull(out this.make, nameof(make), make);
 }
Example #3
0
 public LoopMethod(Rest <C, T> rest, int count)
 {
     SetField.NotNull(out this.rest, nameof(rest), rest);
     this.count = count;
 }
Example #4
0
 public LogSurrogate(ISerializationSurrogate inner, TraceListener trace)
 {
     SetField.NotNull(out this.inner, nameof(inner), inner);
     SetField.NotNull(out this.trace, nameof(trace), trace);
 }
Example #5
0
 public SurrogateLogDecorator(ISurrogateProvider inner, TraceListener trace)
 {
     SetField.NotNull(out this.inner, nameof(inner), inner);
     SetField.NotNull(out this.trace, nameof(trace), trace);
 }
Example #6
0
 public VoidMethod(Rest <C, T> rest)
 {
     SetField.NotNull(out this.rest, nameof(rest), rest);
 }
Example #7
0
        public static void NotNullFrom <T>(out T field, string name, SerializationInfo info) where T : class
        {
            var value = (T)info.GetValue(name, typeof(T));

            SetField.NotNull(out field, name, value);
        }
Example #8
0
 public FormatterStore(Stream stream, IFormatter formatter)
 {
     SetField.NotNull(out this.stream, nameof(stream), stream);
     SetField.NotNull(out this.formatter, nameof(formatter), formatter);
 }
Example #9
0
 protected InvalidWaitException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     SetField.NotNullFrom(out this.wait, nameof(this.wait), info);
 }
Example #10
0
 public InvalidTypeException(IWait wait, Type type)
     : base($"invalid type: expected {wait.ItemType}, have {type.Name}", wait)
 {
     SetField.NotNull(out this.type, nameof(type), type);
 }
Example #11
0
 protected InvalidWaitException(string message, IWait wait)
     : base(message)
 {
     SetField.NotNull(out this.wait, nameof(wait), wait);
 }
Example #12
0
 private InvalidTypeException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     SetField.NotNullFrom(out this.type, nameof(this.type), info);
 }
Example #13
0
 public SurrogateSelector(IReadOnlyList <ISurrogateProvider> providers)
 {
     SetField.NotNull(out this.providers, nameof(providers), providers);
 }
Example #14
0
 public Fiber(IFrameFactory <C> factory, IWaitFactory <C> waits)
 {
     SetField.NotNull(out this.frames, nameof(factory), factory);
     SetField.NotNull(out this.waits, nameof(waits), waits);
 }
Example #15
0
 public PostStruct(IPost <object> postBoxed)
 {
     SetField.NotNull(out this.postBoxed, nameof(postBoxed), postBoxed);
 }
Example #16
0
 public FactoryStore(IStore <T> store, Func <T> factory)
 {
     SetField.NotNull(out this.store, nameof(store), store);
     SetField.NotNull(out this.factory, nameof(factory), factory);
 }
Example #17
0
 private Wait(SerializationInfo info, StreamingContext context)
 {
     SetField.NotNullFrom(out this.rest, nameof(rest), info);
     SetField.From(out this.need, nameof(need), info);
 }
Example #18
0
 public ErrorResilientStore(IStore <T> store)
 {
     SetField.NotNull(out this.store, nameof(store), store);
 }
Example #19
0
 public Releaser(LocalMutualExclusion <T> owner, T item)
 {
     SetField.NotNull(out this.owner, nameof(owner), owner);
     SetField.NotNull(out this.item, nameof(item), item);
 }