コード例 #1
0
ファイル: JobRuntime.cs プロジェクト: kapitanov/diploma
        public JobRuntime(
            IDataFlowConnection connection,
            DataContractOptions dtoOptions,
            Japi.Job job,
            IJobResultReader jobResultReader)
        {
            if (connection == null)
                throw new ArgumentNullException("connection");
            if (dtoOptions == null)
                throw new ArgumentNullException("dtoOptions");
            if (job  == null)
                throw new ArgumentNullException("job");
            if (jobResultReader == null)
                throw new ArgumentNullException("job");

            this.connection = connection;
            this.dtoOptions = dtoOptions;
            this.job = job;
            this.jobResultReader = jobResultReader;

            executionSequence = new JobExecutionSequence(this);
            JobStateIndeterminable();
        }
コード例 #2
0
 public JsonDataContractSerializer(Type type, DataContractOptions _)
 {
     serializer = new DataContractJsonSerializer(type);
 }
コード例 #3
0
 public XmlDataContractSerializer(Type type, DataContractOptions _)
 {
     serializer = new DataContractSerializer(type);
 }
コード例 #4
0
 public BinaryFormatSerializer(DataContractOptions _)
 {
     serializer = new BinaryFormatter();
 }
コード例 #5
0
 public XmlFormatSerializer(Type type, DataContractOptions _)
 {
     serializer = new XmlSerializer(type);
 }
コード例 #6
0
ファイル: DtoHelper.cs プロジェクト: kapitanov/diploma
 public static string Store(DataContractOptions dtoOptions)
 {
     return string.Format("{0}:{1}", dtoOptions.Serialization, dtoOptions.Encoding.EncodingName);
 }