コード例 #1
0
ファイル: Serialization.cs プロジェクト: wballard/BotBuilder
 public ObjectReference(SerializationInfo info, StreamingContext context)
 {
     SetField.NotNullFrom(out this.type, nameof(type), info);
 }
コード例 #2
0
 public StoreFromStack(Func <string, IBotDataBag, IStore <IFiberLoop <C> > > make)
 {
     SetField.NotNull(out this.make, nameof(make), make);
 }
コード例 #3
0
 public LoopMethod(Rest <C, T> rest, int count)
 {
     SetField.NotNull(out this.rest, nameof(rest), rest);
     this.count = count;
 }
コード例 #4
0
ファイル: Serialization.cs プロジェクト: wballard/BotBuilder
 public LogSurrogate(ISerializationSurrogate inner, TraceListener trace)
 {
     SetField.NotNull(out this.inner, nameof(inner), inner);
     SetField.NotNull(out this.trace, nameof(trace), trace);
 }
コード例 #5
0
 public SurrogateLogDecorator(ISurrogateProvider inner, TraceListener trace)
 {
     SetField.NotNull(out this.inner, nameof(inner), inner);
     SetField.NotNull(out this.trace, nameof(trace), trace);
 }
コード例 #6
0
 public VoidMethod(Rest <C, T> rest)
 {
     SetField.NotNull(out this.rest, nameof(rest), rest);
 }
コード例 #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);
        }
コード例 #8
0
ファイル: Store.cs プロジェクト: ObsidianAdvisoryLLP/Bot
 public FormatterStore(Stream stream, IFormatter formatter)
 {
     SetField.NotNull(out this.stream, nameof(stream), stream);
     SetField.NotNull(out this.formatter, nameof(formatter), formatter);
 }
コード例 #9
0
 protected InvalidWaitException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     SetField.NotNullFrom(out this.wait, nameof(this.wait), info);
 }
コード例 #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);
 }
コード例 #11
0
 protected InvalidWaitException(string message, IWait wait)
     : base(message)
 {
     SetField.NotNull(out this.wait, nameof(wait), wait);
 }
コード例 #12
0
 private InvalidTypeException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     SetField.NotNullFrom(out this.type, nameof(this.type), info);
 }
コード例 #13
0
 public SurrogateSelector(IReadOnlyList <ISurrogateProvider> providers)
 {
     SetField.NotNull(out this.providers, nameof(providers), providers);
 }
コード例 #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);
 }
コード例 #15
0
 public PostStruct(IPost <object> postBoxed)
 {
     SetField.NotNull(out this.postBoxed, nameof(postBoxed), postBoxed);
 }
コード例 #16
0
ファイル: Store.cs プロジェクト: ObsidianAdvisoryLLP/Bot
 public FactoryStore(IStore <T> store, Func <T> factory)
 {
     SetField.NotNull(out this.store, nameof(store), store);
     SetField.NotNull(out this.factory, nameof(factory), factory);
 }
コード例 #17
0
 private Wait(SerializationInfo info, StreamingContext context)
 {
     SetField.NotNullFrom(out this.rest, nameof(rest), info);
     SetField.From(out this.need, nameof(need), info);
 }
コード例 #18
0
ファイル: Store.cs プロジェクト: ObsidianAdvisoryLLP/Bot
 public ErrorResilientStore(IStore <T> store)
 {
     SetField.NotNull(out this.store, nameof(store), store);
 }
コード例 #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);
 }